<#--
	This template handles: 
		* intializing qTable.currentColumnCount if it has not been initialzed,
		* emiting a <tr> tag if the currentColumnCount == 0,
-->
<#if !qTableLayout_currentColumnCount?exists >
	${stack.setValue('#qTableLayout_currentColumnCount', 0)}
</#if>
<#if !qTableLayout_currentRowCount?exists >
	${stack.setValue('#qTableLayout_currentRowCount', 0)}
</#if>
<#-- Do we need to write the opening tr tag. -->
<#if qTableLayout_tablecolspan?exists >
	<#assign columnCount = qTableLayout_currentColumnCount?number />
<#else>
	<#-- Set the currentColumnCount to 0 because this is the first row of the table. -->
	${stack.setValue('#qTableLayout_currentColumnCount', 0)}
	<#assign columnCount = 0 />
</#if>
<#if columnCount == 0>
	<#assign rowCount = qTableLayout_currentRowCount?number + 1 />	
	${stack.setValue('#qTableLayout_currentRowCount', rowCount)}
	<#lt/><tr<#rt/>
<#if rowCount % 2 == 1>
 class="odd"<#rt/>
<#else>
 class="even"<#rt/>
</#if>
>
</#if>
